package com.app.TCES.service;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.app.TCES.domain.Administrator;
import com.app.TCES.domain.Student;
import com.app.TCES.domain.Teacher;
import com.app.TCES.mapper.UserMapper;

@Service
public class UserService {
    @Autowired
	UserMapper userMapper;
	public Administrator loginA(Administrator administrator) {
		return userMapper.selectAdministrator(administrator);	
	}
	
	public Student loginS(Student student) {
		
		return userMapper.selectStudent(student);
		
	}
	
	public Teacher loginT(Teacher teacher) {

		return userMapper.selectTeacher(teacher);
		
	}
	

}
